<?php
function show_page($db,$sql){ 
	$page = new Page();
	$data = $page->show($db,$sql);
	$list = $db->getAll($sql.' LIMIT '.$data['start'].', '.$data['perpage']);
	return array('list'=>$list,'page'=>$data['pagestr']);
}
?>